/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.nightknight.satobee.gui;

import java.net.Socket;
import org.nightknight.satobee.core.IConRecListener;
import org.nightknight.satobee.core.Server;

/**
 *
 * @author nightknight
 */
public class ServerGUIImpl extends Server {
    
    private ServerGUIImpl() {
        this.addConvRecListener(new IConRecListener() {

            public void convRecListener(Socket s) {
                ConversationGUIImpl conv = new ConversationGUIImpl(s);
                
                conv.setVisible(true);
            }
            
        });
    }
    
    static {
        server = new ServerGUIImpl();
    }
    
    private static Server server;
    
    public static Server getServer() {
        return server;
    }
}
